package org.sean.framework.schedule.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 任务
 */
@Data
@Schema(name = "定时任务")
public class Job {
    @Schema(description = "ID")
    private Integer id;

    @Schema(description = "任务名称")
    private String name;

    @Schema(description = "服务名称")
    private String serviceName;

    @Schema(description = "Bean名称")
    private String beanName;

    @Schema(description = "方法名")
    private String methodName;

    @Schema(description = "cron表达式")
    private String cronExpression;

    @Schema(description = "参数(JSON格式)")
    private String params;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "创建时间")
    private Date createTime;
}
